<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="css/shouye.css" />
		<link rel="stylesheet" type="text/css" href="css/changename.css"/>
		<link rel="stylesheet" type="text/css" href="css/zhuce.css"/>
		<link rel="stylesheet" type="text/css" href="css/changenab.css"/>
	</head>

	<body>
		<script src="js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init()
		</script>
		<div class="content">
			
	
		<header class="mui-bar mui-bar-nav">
			
			<a class="nav-top-left"> <img src="icon/icon_0.jpg"  class="back"  width="12px" height="20px"/>
			<span id="" >
				返回
			</span>
			</a>
			<p id="title" class="mui-title title2">极战FMB</p>
			
		</header>
		<div class="box">
			
			<div id="" class="mui-content">
	<div class="beijing">
		<div id="" class="biaodan">
			<form class="mui-input-group">
				
				<div id="" class="dalao">	
					<div class="mui-input-row">
       
        <input type="text" id="txtd" class="mui-input-clear" placeholder="请输入新手机号"/>
    </div>
				
    <div class="mui-input-row ">
       
    <input type="text"  class="mui-input-clear" placeholder="请输入验证码"/>
   
    <input type="button" class="mui-btn  getnumb" value="获取验证码" onclick="sendCode(this)"/>
    </div>
    
    </div>
    
  
   
</form>
		</div>
	
    </div>

</div>
			
		</div>
			<a href="javascript:;"  id="btnVal">
	    		<div id="yes" class="yes">
		    			<p>确认修改</p>
		    	</div>
		    </a>
		</div>
		
		   <script type="text/javascript">
 var clock = '';
 var nums = 60;
 var btn;
 function sendCode(thisBtn)
 { 
 btn = thisBtn;
 btn.disabled = true; //将按钮置为不可点击
 btn.value = ''+nums+ 'S';
 clock = setInterval(doLoop, 1000); //一秒执行一次
 }
 function doLoop()
 {
 nums--;
 if(nums > 0){
  btn.value = ''+nums+ 'S';
 }else{
  clearInterval(clock); //清除js定时器
  btn.disabled = false;
  btn.value = '重新获取';
  nums = 60; //重置时间
 }
 }
</script>
<!--====-->
<script>
    document.getElementById("btnVal").onclick = function () {
    	IsMobile(document.getElementById("txtd").value);
//      document.getElementById("spd").innerHTML = IsMobile(document.getElementById("txtd").value) ? "验证通过" : "验证不通过";
        if(IsMobile()==0 ){
        	mui.alert('手机号格式错误！','提示' );
        }
    }
    
</script>
<!--====-->
<script type="text/javascript">
    function IsMobile(){ 
    var phone = document.getElementById('txtd').value;
    if(!(/^1[34578]\d{9}$/.test(phone))){ 
        return 0;
    }
}
</script>
		
		
	</body>

</html>